<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>
<body>
  <script>
    var div = document.createElement('div');
    console.log(div);    // 结果为：<div></div>
  </script>
</body>
</html>